I have a node/typescript application which I'm trying to import a function from another file. To export it I used exports.coolFunc = coolFunc and to import I used import {coolFunc} from '../controller/coolStuff'.
When I do that I get
Module '"../controller/coolFunc"' has no exported member 'coolFunc'
What am I doing wrong and how can I fix it?